@echo off
echo 🚀 启动智能名片生成器...
echo.

echo 📦 检查Python依赖...
pip install -r requirements.txt

echo.
echo 🎭 检查Playwright...
cd card_renderer_puppeteer
if not exist node_modules (
    echo 安装Node.js依赖...
    npm install playwright
)

echo.
echo 🎬 确保Playwright浏览器已安装...
npx playwright install chromium

cd ..

echo.
echo 🌟 启动Flask应用...
echo 应用将在 http://localhost:5000 启动
echo 按 Ctrl+C 停止应用
echo.

python card_generator_app.py 